package com.weetop.akly.utils;


import com.weetop.akly.bean.PostMessage;

import org.greenrobot.eventbus.EventBus;

public class EventBusUtil {
    public static void register(Object subscriber) {
        EventBus.getDefault().register(subscriber);
    }

    public static void unregister(Object subscriber) {
        EventBus.getDefault().unregister(subscriber);
    }

    public static void sendEvent(PostMessage event) {
        EventBus.getDefault().post(event);
    }

    public static void sendStickyEvent(PostMessage event) {
        EventBus.getDefault().postSticky(event);
    }

}
